<?php

/**
 * Production configuration
 * Usage:
 * - Online website
 * - Production DB
 * - Standard production error pages (404, 500, etc.)
 */
return array(
	'yiiPath'=>'/data/codex/yii/framework/yii.php',
	'yiicPath'=>'/data/codex/yii/framework/yiic.php',
	'yiitPath'=>'/data/codex/yii/framework/yiit.php',
	'yiiDebug'=>false,
	'yiiTraceLevel'=>3,
	'configWeb'=>array(
		'modules'=>array(
			'user'=>array(
				'returnLogoutUrl'=>array('/qa/question/index'),
				'returnUrl'=>array('/qa/question/index'),
				'sendActivationMail'=>true,
				'tableUsers'=>'users',
				'tableProfiles'=>'profiles',
				'tableProfileFields'=>'profiles_fields',
				'install'=>false,
			),
			'rights'=>array(
				'install'=>false,
			),
			'qa'=>array(
				'userClass'=>'User',
				'install'=>false,
				'admins'=>array(
					'andy.julot@gmail.com',
					'sonjaya@gmail.com',
					'dyustisia@yahoo.com',
				)
			),
			'comment'=>array(
				'defaultModelConfig'=>array(
					'registeredOnly'=>true,
					'useCaptcha'=>false,
					'allowSubcommenting'=>true,
					'premoderate'=>false,
					'postCommentAction'=>'comment/comment/postComment',
					'isSuperuser'=>'false',
					'orderComments'=>'ASC',
				),
				'commentableModels'=>array(
					'Question',
				),
				'userConfig'=>array(
					'class'=>'User',
					'nameProperty'=>'username',
					'emailProperty'=>'email',
				),
			),
		),
		'components'=>array(
			'db'=>array(
				'connectionString'=>"mysql:host=localhost;dbname=miyabi",
				'emulatePrepare'=>true,
				'username'=>'miyabi',
				'password'=>'KagurazakiMiyabi',
				'charset'=>'utf8',
				'tablePrefix'=>''
			),
			'mail'=>array(
				'class'=>'ext.mail.YiiMail',
				'transportType'=>'php',
				'logging'=>true,
				'dryRun'=>false,
			),
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning, trace, info',
					),
					array(
						'class'=>'EmailLogRoute',
						'levels'=>'error, info',
						'filter'=>array(
							'class'=>'LogFilter',
							'ignoreCategories'=>array(
								'exception.CHttpException.*',
							),
						),
						'emails'=>'andy.julot@gmail.com',
					),
				),
			),
		),
		'params'=>array(
			'mode'=>'production',
			'company'=>'PojokDomain.com',
			'adminEmail'=>'info@pojokdomain.com',
			'admin'=>array(
				'name'=>'Info',
				'email'=>'info@pojokdomain.com',
			),
			'files'=>'/data/codex/miyabi/files',
		),
	),
	'configConsole'=>array(
		'components'=>array(
			'log'=>'inherit',
		),
		'params'=>'inherit',
	),
);
